package com.koron.ticket.utils.bean;

import com.koron.common.core.business.configsettings.utils.ConfigInfoTool;
import lombok.Data;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author jzp
 * @since 2021/11/4
 */
@Data
@Component
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class StorageProperties {
    private String winLocation;
    private String linuxLocation;

    public StorageProperties() {
        Map<String, String> map = ConfigInfoTool.getConfigByCode("common", "storage");
        this.winLocation = map.get("winLocation");
        this.linuxLocation = map.get("linuxLocation");
    }
}
